/**
 * Created by Administrator on 2015/11/27.
 */

/**
 * User Object
 * @param options
 * @constructor
 */
var User = function (options) {
    var $self = this
    $self.id = options && options.id || null
    $self.username = options && options.username || null
    $self.password = options && options.password || null
    $self.nick = options && options.nick || null
    $self.gender = options && options.gender || true
    $self.telephone = options && options.telephone || null
    $self.qq = options && options.qq || null
    $self.birthday = options && options.birthday || new Date()
    $self.address = options && options.address || null
    $self.portrait = options && options.portrait || null
}
var Menu = function (options) {
    var $self = this
    $self.id = options && options.id || null
    $self.name = options && options.name || null
    $self.user_id = options && options.user_id || null
    $self.description = options && options.description || null
    $self.upvote = options && options.upvote || true
    $self.collectionCount = options && options.collectionCount || null
    $self.createOn = options && options.createOn || new Date()
}

module.exports = {
    User: User,
    Menu: Menu
}